overlay: Fix remove implementation
authorTimm Bäder <mail@baedert.org>
Sun, 4 Mar 2018 19:03:54 +0000 (20:03 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 4 Mar 2018 19:03:54 +0000 (20:03 +0100)
Use the child widget list of the overlay, not the passed child.

gtk/gtkoverlay.c

index d60e1cb928e690d7c2aaeaef5740b477a90d0633..a81b0a5a4e7085217ed2318eab131cc288e0597f 100644 (file)
@@ -379,7 +379,7 @@ gtk_overlay_remove (GtkContainer *container,
 
       gtk_widget_unparent (widget);
 
-      for (w = gtk_widget_get_first_child (widget);
+      for (w = gtk_widget_get_first_child (GTK_WIDGET (container));
            w != NULL;
            w = gtk_widget_get_next_sibling (w))
         {